<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var s = 'a9';
        
        function f(){
            var s = 'b9';
            let s2 = 'c9';
            console.log(s);
            console.log(s2);
            s = 'b'+s;
            s2 = 'c'+s2;
            console.log(s);
            console.log(s2);
        }
        console.log(s);
        f();
    </script>
</body>
</html>